

{% extends "bootstrap/base.html" %}
{% block title %}
    销售列表
{% endblock %}
{% include 'nav.html' %}
{% block content %}
<body background="{{ url_for('static', filename='images/background.jpg') }}">
<div class="container login-page" style="padding-top: 20px">
    <div class="row">
        <div class="table-responsive">
            <table class="table">
                <caption>销售列表</caption>
                <thead>
                    <tr>
                        <th>定单号</th>
                        <th>购买客户</th>
                        <th>产品名称</th>
                        <th>产品条码</th>
                        <th>产品型号</th>
                        <th>销售价格</th>
                        <th>销售数量</th>
                        <th>销售总额</th>
                        <th>销售时间</th>

                    </tr>
                </thead>
                <tbody>
                {% for sale_list in sale_list %}
                    <tr>
                        <td>{{ sale_list.saleorders.salebh }}</td>
                        <td>{{ sale_list.saleorders.clients.name }}</td>
                        <td>{{ sale_list.c_name }}</td>
                        <td>{{ sale_list.c_tcode }}</td>
                        <td>{{ sale_list.c_xingh }}</td>
                        <td>{{ sale_list.salejg }}</td>
                        <td>{{ sale_list.salesl }}</td>
                        <td>{{ sale_list.salesl*sale_list.salejg }}</td>
                        <td>{{ sale_list.saleorders.saledate }}</td>

                    </tr>
                {% endfor %}
                </tbody>
        </table>
        </div>
    </div>
</div>
</body>
{% endblock %}
